import pymongo
import json
from ReachMongo import FetchRules
import time
from data import getData




def check():
    rules = json.loads(FetchRules())
    print rules












if __name__ == "__main__":
    

    while True:
        #print FetchRules()
        #print getData()
        check()
        time.sleep(20)


		
